#导包
import requests

#准备测试数据
url = "https://www.baidu.com"

#发送get请求
response = requests.get(url)

#打印响应结果：状态码和文本
print(response.status_code)
print(response.text)